package com.xx.phonecall;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.stkcall.library.RecordAudioManager;

import java.io.File;
import java.util.List;

/**
 * <p>------------------------------------------------------
 * <p>Copyright (C) wasu company, All rights reserved.
 * <p>------------------------------------------------------
 *
 * @author: xujie
 * @date: 9/20/22
 */
public class AudioActivity extends AppCompatActivity {

    AudioAdapter adapter = new AudioAdapter();

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_audio);
        RecyclerView recyclerView = findViewById(R.id.recycler);
        recyclerView.setLayoutManager(new LinearLayoutManager(this));
        recyclerView.setAdapter(adapter);


        List<File> files = RecordAudioManager.getInstance().searchAudioFile();
        adapter.setList(files);
    }
}
